﻿using System;
using System.Globalization;
using System.Text.RegularExpressions;

namespace SIGERP_Presentacion.Utilities
{
    public class ValidarEMail
    {
        public static bool esMailValido(string correo)
        {
            return Regex.IsMatch(correo, @"^(?("")("".+?""@)|(([0-9a-zA-Z]((\.(?!\.))|[-!#\$%&'\*\+/=\?\^`\{\}\|~\w])*)(?<=[0-9a-zA-Z])@))" + @"(?(\[)(\[(\d{1,3}\.){3}\d{1,3}\])|(([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,6}))$");
        }

    }
}
